/**
 * Core methods
 *
 * Created by JetBrains PhpStorm
 * User: Semen Kamenetskiy <s-kamen@mail.ru>
 * Date: 5/17/13
 * Time: 9:47 AM
 */

/**
 * Sets a global variable in the "window" object
 * @param key
 * @param value
 * @returns {*}
 * @private
 */
function __setGlobal(key, value) {
    window[key] = value;
    return window[key];
}

/**
 * Gets a global variable
 * @param key
 * @returns {*|undefined}
 * @private
 */
function __getGlobal(key) {
    return window[key] || undefined;
}